package com.lpit.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lpit.dto.ArticleManagementDto;
import com.lpit.pojo.Article;
import com.lpit.result.ResponseResult;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

public interface ArticleManagementService extends IService<Article> {
    /**
     * 查询所有文章
     * @return
     */
    ResponseResult list(ArticleManagementDto article);

    /**
     * 修改文章
     * @param article
     * @return
     */
    ResponseResult modify(Article article);

    /**
     * 根据id删除文章
     * @param id
     * @return
     */
    ResponseResult delete(Integer id);

    /**
     * 置顶文章
     * @param id
     * @return
     */
    ResponseResult contentTop(Integer id);

    /**
     * 内容撤回，存放到草稿箱
     * @param id
     * @return
     */
    ResponseResult revocation(Integer id);
}
